import request from '@/utils/request'

/**获取商品数据
 * @param params
 */
 export function getGoodsList(params) {
  return request({
    url: '/goods',
    method: 'GET',
    params: params
  })
}
/**添加商品
 * @param data
 */
export function insertGoodsList(params) {
  return request({
    url: '/goods',
    method: 'post',
    data: params
  })
}
/**删除商品
 * @param params
 */
export function deleteGoodsList(params) {
  return request({
    url: '/goods',
    method: 'delete',
    params: params
  })
}
/**修改商品
 * @param data
 */
export function updateGoodsList(params) {
  return request({
    url: '/goods',
    method: 'put',
    data: params
  })
}
